package com.huang.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
  private int id;
  private String name;
  //属性名和字段名不一致pwd！=password
  //第一种方法改sql语句 select id,name,pwd as password from user where id = #{id};
  //第二种方法resultMap在UserMapper.xml中编写
  private String password;
}
